package com.example.kekewaimaibao.shop.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xuxiang
 * @date: 2022/3/11 23:08 星期五
 * @description:
 * @version: 1.0
 */
@Data
@TableName("keke_shop")
public class ShopDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId("shop_id")
    Long shopId;
    @TableField("shop_name")
    String shopName;
    @TableField("phone")
    String phone;
    @TableField("email")
    String email;
    @TableField("password")
    String password;
    @TableField("avatar")
    String avatar;
    @TableField("shop_image")
    String shopImage;
    @TableField("shop_tag")
    String shopTag;
    @TableField("province")
    String province;
    @TableField("city")
    String city;
    @TableField("district")
    String district;
    @TableField("longitude")
    String longitude;
    @TableField("latitude")
    String latitude;
    @TableField("address_detail")
    String addressDetail;
    @TableLogic
    private String delFlag;
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableField("remark")
    private String remark;
}
